import { IFormItem } from '@/base-ui/form/index'
import { ITableItem } from '@/base-ui/table/index'
const formItems: IFormItem[] = [
  {
    field: 'keyword',
    type: 'input',
    label: '关键字',
    placeholder: '请输入用户名',
  },

  {
    field: 'isActive',
    type: 'select',
    label: '是否启用',
    placeholder: '请选择',
    options: [
      {
        title: '启用',
        value: 'true',
      },
      {
        title: '未启用',
        value: 'false',
      },
    ],
  },
  {
    field: 'createTime',
    type: 'datepicker',
    label: '创建时间',
    placeholder: '请输入时间范围',
    otherOptions: {
      startPlaceholder: '开始时间',
      endPlaceholder: '结束时间',
      type: 'daterange',
    },
  },
]
const tableItems: ITableItem[] = [
  {
    prop: 'userName',
    label: '用户名',
    minWidth: 180,
  },
  {
    prop: 'surname',
    label: '名称',
    minWidth: 180,
  },
  {
    prop: 'isActive',
    label: '状态',
    minWidth: 180,
    slotName: 'status',
  },
  {
    prop: 'creationTime',
    label: '创建时间',
    minWidth: 180,
    slotName: 'creationTime',
  },
  {
    prop: 'updateAt',
    label: '更新时间',
    minWidth: 180,
    slotName: 'updateAt',
  },
  {
    prop: 'operation',
    label: '操作',
    minWidth: 180,
    slotName: 'operation',
  },
]
export { formItems, tableItems }
